<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>猪八戒网</title>
<head>
  <script type='text/javascript' src='http://localhost/zyhhdcms/xm/hdphp/org/jquery-1.7.2.min.js'></script>
  <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/zyhhdcms/xm';
		HDPHP = 'http://localhost/zyhhdcms/xm/hdphp';
		STATIC = 'http://localhost/zyhhdcms/xm/static';
		DATA = 'http://localhost/zyhhdcms/xm/data';
		WEB = 'http://localhost/zyhhdcms/xm/index.php';
		APP = 'http://localhost/zyhhdcms/xm/index.php/index';
		CONTROL = 'http://localhost/zyhhdcms/xm/index.php/index/category';
		METH = 'http://localhost/zyhhdcms/xm/index.php/index/category/show';
		URL = 'http://localhost/zyhhdcms/xm/index.php/index/category/show';
		ORG = 'http://localhost/zyhhdcms/xm/hdphp/org';
		TPL = 'http://localhost/zyhhdcms/xm/cms/index/tpl';
		PUBLIC = 'http://localhost/zyhhdcms/xm/cms/index/tpl/public';
</script> 
<link type="text/css" rel="stylesheet" href="http://localhost/zyhhdcms/xm/cms/index/tpl/public/css/index.css"/>
<script type="text/javascript" src="<?php echo "http://localhost/zyhhdcms/xm/cms/index/tpl/public/js/index.js";?>"></script>
</head>
<body>
	<div id="top">
		<div class="big">
			<div id="top_menu"><!--导航栏开始-->
				
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category">猪八戒网</a>
				<span>|</span>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category">English</a>
				<div class="top_right">

					<ul >
						<li><h5><a href="#">推广</a></h5></li><span>|</span>
						<li><h5><a href="#">服务热线：400-188-6666</a></h5></li><span>|</span>
						<li><h5><a href="#"> 帮助中心</a></h5></li><span>|</span>
						<li><h5><a href="#">社区</a></h5></li><span>|</span>
						<li><h5><a href="#">网站导航</a></h5>
						<div class="under">
							<a href="#">我的猪八戒</a>
							<a href="#">已购买的服务</a>
							<a href="#">我的主页</a>
							<a href="#">我的猪八戒</a>
						</div></li>	<span>|</span>
						<li><h5><a href="#">服务商中心</a></h5><div class="under">
							<a href="#">服务商中心</a>
							<a href="#">已经卖出去的服务</a>
							<a href="#">出售中的服务</a>
							<a href="#">服务商中心</a>
						</div>
						</li><span>|</span>
						<li><h5><a href="#">我的猪八戒</a></h5>
						<div class="under">
							<a href="#">我的猪八戒</a>
							<a href="#">已购买的服务</a>
							<a href="#">我的主页</a>
							<a href="#">我的猪八戒</a>
						</div>
						</li><span>|</span>
						<li><h5><a href="#" class="xial">我的关注</a></h5></li><span>|</span>
						<li class="on"><h5><a href="#" class="on" >发布需求</a></h5></li><span>|</span>
 
					</ul>
				</div>
			</div>
			
		<img src="http://localhost/zyhhdcms/xm/static/images/head_top.jpg" style="float:left;margin-left:10.5px;"  />
		</div>
		</div><!--导航栏结束-->
	<div id="lo_fo"><!--logo和表单部分-->
		<div class="big">
		<div class="form">
			<a href="http://localhost/zyhhdcms/xm/index.php/index/category">
				<img src="http://localhost/zyhhdcms/xm/static/images/logo_z.png"  class="logo"/></a><!--LOGO图片-->
			<a href="http://localhost/zyhhdcms/xm/index.php/index/category" class="what">&nbsp;</a>
			<form  action="http://localhost/zyhhdcms/xm/index.php/index/category/search">
				<input type="text" class="search" value="你搜索的关键字"/>
				<input type="submit" value="" class="button" />	
			</form><!-- 搜索表单 -->
			
		<div class="login"><!-- 登陆和注册表单 -->
			<?php if(empty($_SESSION['usernmae'])){?>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/add_user">免费注册</a><span>|</span>
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/login">登陆</a>
				<a href="#" class="other" ></a>
				<span class="more"></span>

				<!-- 其他登陆方式 --><?php }?></div>
				<div class="other_on">
				<ul>
				<a href="#"><li class="qq"></li></a>
				<a href="#"><li class="sina"></li></a>
 				</ul>
			</div>		

			
		</div>
	</div>
</div>
	<div id="menu"><!--网站导航栏-->
		<div class="big">
			<ul>
				<a href="CONTROL"><li>首页</li></a>
				<a href="#"><li>所有需求</li></a>
				<?php if(!empty($row)){$listCount = count($row);$list_id1=0;?><?php foreach($row as $key=>$list){?><?php $list_id1+=1;?>
				<?php if($list['pid']==0){?>	
				<a href="http://localhost/zyhhdcms/xm/index.php/index/category/cate_show/cateid/<?php echo $list['cateid'];?>">
					<li><?php echo $list['cname'];?></li></a><?php }?>
			<?php }?><?php }?>
			</ul>
			<ul id="new">
				<a href="#"><li>赚美金</li></a>
				<a href="#"><li>网站建设</li></a>
				<a href="#"><li>视频</li></a>
				<a href="#"><li>大赛</li></a>
				<a href="#"><li>图书</li></a>
				<a href="#"><li>微博</li></a>
			</ul>	
	